package com.ffcs.crmd.tsp.admin.service;

import java.util.List;

import com.ffcs.crmd.tsp.admin.entity.Cluster;
import com.ffcs.crmd.tsp.common.exception.TspException;

public interface IClusterService {

    /**
     * 功能说明:
     * 
     * @param cluster
     * @throws TspException 
     */
    void saveCluster(Cluster cluster) throws TspException;

    /**
     * 功能说明:
     * 
     * @param cluster
     * @throws TspException 
     */
    void deleteCluster(Cluster cluster) throws TspException;

    /**
     * 功能说明:
     * 
     * @param clusterList
     * @throws TspException 
     */
    void deleteCluster(List<Cluster> clusterList) throws TspException;

    /**
     * 功能说明:
     * 
     * @param cluster
     * @throws TspException
     */
    void updateCluster(Cluster cluster) throws TspException;

    /**
     * 功能说明:
     * 
     * @return
     * @throws TspException
     */
    List<Cluster> query() throws TspException;
    
    /**
     * 功能说明:
     * 
     * @param name
     * @return
     * @throws TspException
     */
    List<Cluster> query(String name) throws TspException;

    /**
     * 功能说明:
     * 
     * @param pageNumber
     * @param pageSize
     * @return
     * @throws TspException
     */
    com.ctg.itrdc.platform.common.entity.PageInfo<Cluster> queryPage(int pageNumber, int pageSize) throws TspException;

    /**
     * 功能说明:
     * 
     * @param name
     * @param pageNumber
     * @param pageSize
     * @return
     * @throws TspException
     */
    com.ctg.itrdc.platform.common.entity.PageInfo<Cluster> queryPage(String name, int pageNumber, int pageSize) throws TspException;
    
}
